home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / SelctGroup < prev    next >
Text File  |  1994-03-05  |  1KB  |  39 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Icon.SelctGroup.c
  12.     Author:  Copyright © 1994 Tim Browse
  13.     Version: 1.00 (05 Mar 1994)
  14.     Purpose: Select/deselect a group of icons, specified by an array of 
  15.              icon handles.
  16. */
  17.  
  18. #include "DeskLib:Wimp.h"
  19. #include "DeskLib:WimpSWIs.h"
  20. #include "DeskLib:Icon.h"
  21.  
  22.  
  23. void Icon_SelectGroup(window_handle window, 
  24.                           icon_handle icons[], 
  25.                           BOOL select_flag_value)
  26. {
  27.   int i = 0;
  28.  
  29.   while (icons[i] != -1)
  30.   {
  31.     if (select_flag_value)
  32.       Icon_Select(window, icons[i]);
  33.     else
  34.       Icon_Deselect(window, icons[i]);
  35.  
  36.     i++;
  37.   }
  38. }                                                          
  39.